package com.cheng.student.service.interfaces;

import com.cheng.student.beans.Teacher;
import com.cheng.student.dao.mappers.Transaction;

import java.awt.*;
import java.io.FileNotFoundException;
import java.io.IOException;

public interface TeacherService
{
    //根据所给对象的工资号与密码更新其余属性
    public void flushTeacher(String payrollNumber, String password,Teacher newTeacher);
    //根据姓名与工资号刷新其余属性
    public void flushTeacherByName(String name, String payrollNumber,Teacher newTeacher);
    //根据工资号及密码更新头像
    public void flushTeacherImg(Teacher teacher, Image image)
            throws IOException;
    //登录
    public Teacher loginTeacher(String payrollNumber, String password);

    //分页查询老师json
    public String getTeachersJson(int start,int end);

    //添加老师
    public void addTeacher(String name,String payrollNumber,String password,String path);

    //删除老师
    public void deleteTeacher(String name,String payrollNumber);

}
